package com.weibo.zhuanfa.service.imp;

import java.util.List;

import org.apache.log4j.Logger;

import com.weibo.zhuanfa.ZhuanFa;
import com.weibo.zhuanfa.dao.ZhuanfaDao;
import com.weibo.zhuanfa.dao.imp.ZhuanfaDaoImp;
import com.weibo.zhuanfa.service.ZhuanfaService;

public class ZhuanfaServiceImp implements ZhuanfaService {
	private static Logger logger = Logger.getLogger(ZhuanfaServiceImp.class);
	private ZhuanfaDao zhuanfaDao = new ZhuanfaDaoImp();
	@Override
	public boolean addZhuanfa(ZhuanFa zhuanfa) {
		// TODO Auto-generated method stub
		return zhuanfaDao.addZhuanfa(zhuanfa);
	}

	@Override
	public boolean deleteZhuanfa(String fav_id) {
		// TODO Auto-generated method stub
		return zhuanfaDao.deleteZhuanfa(fav_id);
	}

	@Override
	public boolean executeSql(String sql) {
		// TODO Auto-generated method stub
		return zhuanfaDao.executeSql(sql);
	}

	@Override
	public List getZhuanfaList(int currentPage) {
		// TODO Auto-generated method stub
		return zhuanfaDao.getZhuanfaList(currentPage);
	}

	@Override
	public List getZhuanfaList_bySql(String sql) {
		// TODO Auto-generated method stub
		return zhuanfaDao.getZhuanfaList_bySql(sql);
	}

	@Override
	public boolean updateZhuanfa(ZhuanFa zhuanfa) {
		// TODO Auto-generated method stub
		return zhuanfaDao.updateZhuanfa(zhuanfa);
	}

}
